package com.boot.web.controllor.rabbitmq;

import io.swagger.annotations.Api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.boot.business.rabbitmq.service.RabbitMqSend;

@RestController
@RequestMapping("/rabbitMq")
@Api(tags={"RabbitMQ队列"},value="/rabbit",produces="")
public class RabbitMqController {
	@Autowired  
    private RabbitMqSend rabbitMqSend; 
	
	@RequestMapping("/send/{name}")  
    public String helloworld(@PathVariable String name) {  
        return rabbitMqSend.send(name);  
    }
	@RequestMapping("/send2")  
    public String send2(String name) {  
        System.out.println(name);
		return rabbitMqSend.send(name);  
    } 
}
